//
//  QBConst.swift
//  Wei91BoiOS
//
//  Created by bing on 16/3/21.
//  Copyright © 2016年 bing. All rights reserved.
//

import UIKit

/// 自定义Log,需要在build settings 里面搜索 preprocessor Macros (OC的配置方式), 在搜索 swift flag 配置debug "-D" "DEBUG"
func QBPrint(file: String = __FILE__, line: Int = __LINE__, function: String = __FUNCTION__, msg: Any) {
    #if DEBUG
        print("\((file as NSString).lastPathComponent)[\(line)行], \(function): \(msg)")
    #endif
}

// 写在类外面，全局都可以使用
let QBBaseURL = NSURL(string: "https://api.weibo.com/")

// MARK: - 授权登陆相关
/// 申请应用时分配的AppKey
let client_id = "1216825175"

let client_secret = "8ca8535686e1365d4dfe65f39adb31e4"

/// 授权回调地址
let redirect_uri = "http://www.baidu.com/"

// MARK: -
/// 默认动画时间
let QBDefaultDuration: NSTimeInterval = 0.25

// 新特性界面的页数
let QBNewFeaturePageCount = 4

/// 间距
let QBStatusCellMargin: CGFloat = 8

let QBStatusCellContentSize: CGFloat = 14

let QBStatusCellBottomDefaultFontSize: CGFloat = 11

// MARK: - 微博cell配图相关
/// 配图之间的间距
let QBStatusPictureMargin: CGFloat = 10
/// 配图最大列数
let QBStatusPictureMaxColumn = 3

/// 配图cell的大小: (屏幕宽度-配图左右的间距 - cell之间的间距) / cell的数量
let QBStatusPictureCellWH = (UIScreen.width - 2 * QBStatusCellMargin - CGFloat(QBStatusPictureMaxColumn - 1) * QBStatusPictureMargin) / CGFloat(QBStatusPictureMaxColumn)

// 发微博界面微博最大长度
let QBComposeVCStatusMaxLength = 30

